package com.education.expenses.common.dto;

import java.util.List;

/**
 * User: alpoloz
 * Date: 7/12/12
 * Time: 1:22 PM
 */
public class GridDTO<T> {

    private Long pageNumber;
    private Long pageCount;
    private Long recordsCount;

    private List<T> rows;

    public GridDTO(){};

    public GridDTO(long pageCount, long pageNumber) {
        this.pageCount = new Long(pageCount);
        this.pageNumber = new Long(pageNumber);
    }

    public Long getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(Long pageNumber) {
        this.pageNumber = pageNumber;
    }

    public Long getPageCount() {
        return pageCount;
    }

    public void setPageCount(Long pageCount) {
        this.pageCount = pageCount;
    }

    public Long getRecordsCount() {
        return recordsCount;
    }

    public void setRecordsCount(Long recordsCount) {
        this.recordsCount = recordsCount;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
